<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {
     function __construct(){
        parent::__construct();
        $this->session->sess_destroy();
        }
 
public function index(){
        $this->load->library('globals_functions');
        $this->load->model(array('fechas_m','admin/Config_m')); 
	$data['css'] = array('reset','front/login');
        $data['title'] = 'iniciar sesion - Autogestión';
        $data['habbanner'] = $this->fechas_m->hab_solicitud($this->globals_functions->get_date());
        $data['logo'] = $this->Config_m->read_pic_logo();
	$this->load->view('v_login',$data);
       }

/* solicitud de ingreso o nuevo pass */
public function lostnew_pass(){
    $this->load->model('student/Consultas_m');
    $data['css'] = array('reset','front/lostnewpass');
    $data['js']= array('jquery-1.7.2.min','lostnewpass');
    $data['title'] = 'Solicitar nuevo password'; 
    $data['cbo_carrera'] =$this->Consultas_m->llenar_combo('carrera','id_carr','desc_carr','desc_carr');
    $this->load->view('v_lostnewpass',$data);
   }
        


}
    


